package com.hxjb.service.impl;

import com.huamo.base.dao.BaseDao;
import com.hxjb.config.dynamicDSConfig.TargetDataSource;
import com.hxjb.entity.UserActionRecord;
import com.hxjb.service.IHxjbService;
import com.sun.xml.internal.rngom.parse.host.Base;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by wt on 2018/5/9.
 */
@Service
public class HxjbServiceImpl implements IHxjbService {
    @Autowired
    private BaseDao baseDao;

    @Override
    @TargetDataSource(name = "HXJB_ANALYSIS")
    @Transactional
    public void saveActionRecord(UserActionRecord userActionRecord) {
        baseDao.insert("UserActionRecordMapper.saveActionRecord", userActionRecord);
    }
}
